package org.spring.aspectj;

import org.annotation.Tag;
import org.entry.Greeting;
import org.springframework.stereotype.Component;

/**
 * Created by chinalin on 2017/3/18.
 */
@Component
public class GreetingImpl implements Greeting {
    @Tag
    public void sayHello(String name) {
        System.out.println("Hello:" + name);

//        throw new RuntimeException("Error") ;  //故意抛出一个异常，看看异常信息能否被拦截到
    }
}
